package org.brudywr.mychat.dao;

import org.hibernate.Criteria;

import java.util.Collection;
import java.util.Date;

/**
 * @author stas
 * @since 9/3/13
 */
public interface MessageRepository {

    void addMessage(MessageEntity message);

    Collection<MessageEntity> getMessages();
    Collection<MessageEntity> getMessages(String nick);
    Collection<MessageEntity> getMessages(Date fromDate, Date toDate);
}
